package com.demo.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfinal.handler.Handler;

public class HtmlHandler extends Handler {

	@Override
	public void handle(String target, HttpServletRequest request,
			HttpServletResponse response, boolean[] isHandled) {
		System.out.println(target);
		if(target.lastIndexOf(".html")!=-1){
			target=target.substring(0,target.indexOf(".html"));
		}
		nextHandler.handle(target, request, response, isHandled);

	}

}
